<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>报表管理 - SaaS Dashboard</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
    <!-- 自定义CSS -->
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #64748b;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --light-bg: #f8fafc;
            --dark-bg: #0f172a;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-bg);
            color: #334155;
            overflow-x: hidden;
        }

        /* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader::after {
            content: '';
            width: 50px;
            height: 50px;
            border: 5px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 主容器 */
        .main-container {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏 */
        .sidebar {
            width: 280px;
            background-color: #2c3e50;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
            color: white;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar.collapsed .logo-text {
            display: none;
        }

        .sidebar.collapsed .nav-text {
            display: none;
        }

        .sidebar.collapsed .sidebar-header {
            justify-content: center;
        }

        .sidebar.collapsed .sidebar-nav a {
            justify-content: center;
            padding: 12px 0;
            font-size: 0;
        }

        .sidebar.collapsed .sidebar-nav a i {
            margin-right: 0;
            font-size: 16px;
        }

        /* 侧边栏头部 */
        .sidebar-header {
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #34495e;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
        }

        .sidebar-toggle {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: var(--transition);
        }

        .sidebar-toggle:hover {
            background-color: #34495e;
            color: white;
        }

        /* 侧边栏导航 */
        .sidebar-nav {
            padding: 1rem 0;
        }

        .nav-item {
            margin-bottom: 0.25rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem;
            color: white;
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
        }

        .nav-link:hover {
            background-color: #34495e;
            border-left-color: #3498db;
        }

        .nav-link.active {
            background-color: #34495e;
            color: white;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .nav-icon {
            font-size: 1.125rem;
            width: 20px;
            text-align: center;
        }

        .nav-text {
            font-weight: 500;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            margin-left: 280px;
            transition: var(--transition);
        }

        .main-content.expanded {
            margin-left: 80px;
        }

        /* 顶部导航栏 */
        .top-nav {
            background-color: #fff;
            box-shadow: var(--card-shadow);
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 99;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 搜索框 */
        .search-box {
            position: relative;
        }

        .search-box input {
            width: 300px;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .search-box .fa-search {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
        }

        /* 导航右侧 */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* 通知图标 */
        .notification-icon {
            position: relative;
            font-size: 1.25rem;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .notification-icon:hover {
            color: var(--primary-color);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger-color);
            color: #fff;
            font-size: 0.75rem;
            padding: 0.125rem 0.375rem;
            border-radius: 50%;
            min-width: 18px;
            text-align: center;
        }

        /* 用户信息 */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .user-info:hover {
            background-color: #f1f5f9;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--dark-bg);
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        /* 内容区域 */
        .content {
            padding: 2rem;
        }

        /* 页面标题 */
        .page-title {
            margin-bottom: 2rem;
        }

        .page-title h1 {
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--dark-bg);
            margin: 0;
        }

        /* 内容头部 */
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* 按钮样式 */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: var(--transition);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #4338ca;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: #f1f5f9;
            color: var(--secondary-color);
            border: 1px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background-color: #e2e8f0;
        }

        /* 筛选区域 */
        .filter-section {
            background-color: #fff;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            margin-bottom: 2rem;
            border: 1px solid #e2e8f0;
        }

        .filter-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-label {
            font-weight: 500;
            color: var(--dark-bg);
            font-size: 0.875rem;
        }

        .filter-control {
            padding: 0.75rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .filter-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        /* 筛选操作按钮 */
        .filter-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        /* 报表网格 */
        .reports-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }

        /* 报表卡片 */
        .report-card {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            border: 1px solid #e2e8f0;
            overflow: hidden;
            transition: var(--transition);
        }

        .report-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .report-header {
            padding: 1.5rem;
            border-bottom: 1px solid #f1f5f9;
        }

        .report-type {
            display: inline-block;
            padding: 0.375rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .report-type.user {
            background-color: #ede9fe;
            color: var(--primary-color);
        }

        .report-type.sales {
            background-color: #d1fae5;
            color: var(--success-color);
        }

        .report-type.finance {
            background-color: #fef3c7;
            color: var(--warning-color);
        }

        .report-type.marketing {
            background-color: #dbeafe;
            color: #3b82f6;
        }

        .report-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-bg);
            margin-bottom: 0.5rem;
        }

        .report-desc {
            font-size: 0.875rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        .report-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--secondary-color);
        }

        .report-date {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .report-status {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .status-indicator.success {
            background-color: var(--success-color);
        }

        .status-indicator.pending {
            background-color: var(--warning-color);
        }

        .status-indicator.error {
            background-color: var(--danger-color);
        }

        /* 报表内容预览 */
        .report-preview {
            padding: 1rem;
            background-color: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }

        .preview-placeholder {
            height: 120px;
            background-color: #e2e8f0;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary-color);
            font-size: 0.875rem;
        }

        /* 报表操作按钮 */
        .report-actions {
            padding: 1rem 1.5rem;
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
        }

        .action-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #e2e8f0;
            background-color: #fff;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--secondary-color);
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .action-btn:hover {
            background-color: #f1f5f9;
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .top-nav {
                padding: 1rem;
            }

            .search-box input {
                width: 200px;
            }

            .content {
                padding: 1rem;
            }

            .content-header {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-row {
                grid-template-columns: 1fr;
            }

            .reports-grid {
                grid-template-columns: 1fr;
            }

            .filter-actions {
                flex-wrap: wrap;
            }

            .filter-actions .btn {
                flex: 1;
                justify-content: center;
            }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
    </style>
</head>
<body>
    <!-- 加载动画 -->
    <div class="loader"></div>

    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar" id="sidebar">
            <div class="sidebar-header">
                <div class="logo">
                    <div class="logo-icon">S</div>
                    <span class="logo-text">平台端系统</span>
                </div>
                <button class="sidebar-toggle" id="sidebarToggle">
                <i class="fa fa-angle-left toggle-icon"></i>
            </button>
            </div>
            <nav class="sidebar-nav">
                <a href="index.html" class="nav-link">
                    <i class="fa fa-dashboard nav-icon"></i>
                    <span class="nav-text">仪表盘</span>
                </a>
                <a href="users.html" class="nav-link">
                    <i class="fa fa-users nav-icon"></i>
                    <span class="nav-text">用户管理</span>
                </a>
                <a href="analytics.html" class="nav-link">
                    <i class="fa fa-bar-chart nav-icon"></i>
                    <span class="nav-text">数据分析</span>
                </a>
                <a href="tenant-settings.html" class="nav-link">
                    <i class="fa fa-building nav-icon"></i>
                    <span class="nav-text">租户设置</span>
                </a>
                <a href="contracts.html" class="nav-link">
                    <i class="fa fa-file-text-o nav-icon"></i>
                    <span class="nav-text">合同管理</span>
                </a>
                <a href="settings.html" class="nav-link">
                    <i class="fa fa-cog nav-icon"></i>
                    <span class="nav-text">系统设置</span>
                </a>
                <a href="notifications.html" class="nav-link">
                    <i class="fa fa-bell nav-icon"></i>
                    <span class="nav-text">通知中心</span>
                </a>
                <a href="reports.html" class="nav-link active">
                    <i class="fa fa-file-text nav-icon"></i>
                    <span class="nav-text">报表管理</span>
                </a>
                <a href="orders.html" class="nav-link">
                    <i class="fa fa-shopping-cart nav-icon"></i>
                    <span class="nav-text">订单管理</span>
                </a>
                <a href="help.html" class="nav-link">
                    <i class="fa fa-question-circle nav-icon"></i>
                    <span class="nav-text">帮助中心</span>
                </a>
            </nav>
        </aside>

        <!-- 主内容 -->
        <main class="main-content" id="mainContent">
            <!-- 顶部导航栏 -->
            <nav class="top-nav">
                <div class="nav-left">
                    <button class="sidebar-toggle d-md-none" id="mobileSidebarToggle">
                        <i class="fa fa-bars"></i>
                    </button>
                    <div class="search-box">
                        <i class="fa fa-search"></i>
                        <input type="text" placeholder="搜索...">
                    </div>
                </div>
                <div class="nav-right">
                    <div class="notification-icon">
                        <i class="fa fa-bell"></i>
                        <span class="notification-badge">3</span>
                    </div>
                    <div class="user-info">
                        <div class="user-avatar">JD</div>
                        <div class="user-details">
                            <div class="user-name">John Doe</div>
                            <div class="user-role">管理员</div>
                        </div>
                        <i class="fa fa-chevron-down"></i>
                    </div>
                </div>
            </nav>

            <!-- 内容区域 -->
            <div class="content">
                <!-- 页面标题 -->
                <div class="page-title">
                    <h1>报表管理</h1>
                </div>

                <!-- 内容头部 -->
                <div class="content-header">
                    <div class="content-info">
                        <p class="text-muted">管理系统报表，包括生成、查看、下载和分享报表</p>
                    </div>
                    <div class="content-actions">
                        <button class="btn btn-primary">
                            <i class="fa fa-plus"></i>
                            生成新报表
                        </button>
                        <button class="btn btn-secondary">
                            <i class="fa fa-file-text-o"></i>
                            报表模板
                        </button>
                    </div>
                </div>

                <!-- 筛选区域 -->
                <div class="filter-section">
                    <h3 style="font-size: 1.125rem; font-weight: 600; color: var(--dark-bg); margin-bottom: 1.5rem;">报表筛选</h3>
                    <form>
                        <div class="filter-row">
                            <div class="filter-group">
                                <label class="filter-label" for="filter-report-type">报表类型</label>
                                <select class="filter-control" id="filter-report-type">
                                    <option value="">全部类型</option>
                                    <option value="user">用户报表</option>
                                    <option value="sales">销售报表</option>
                                    <option value="finance">财务报表</option>
                                    <option value="marketing">营销报表</option>
                                </select>
                            </div>
                            <div class="filter-group">
                                <label class="filter-label" for="filter-date-from">开始日期</label>
                                <input type="date" class="filter-control" id="filter-date-from" value="2023-05-01">
                            </div>
                            <div class="filter-group">
                                <label class="filter-label" for="filter-date-to">结束日期</label>
                                <input type="date" class="filter-control" id="filter-date-to" value="2023-05-31">
                            </div>
                            <div class="filter-group">
                                <label class="filter-label" for="filter-status">状态</label>
                                <select class="filter-control" id="filter-status">
                                    <option value="">全部状态</option>
                                    <option value="success">成功</option>
                                    <option value="pending">生成中</option>
                                    <option value="error">失败</option>
                                </select>
                            </div>
                        </div>
                        <div class="filter-actions">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-filter"></i>
                                筛选报表
                            </button>
                            <button type="reset" class="btn btn-secondary">
                                <i class="fa fa-refresh"></i>
                                重置
                            </button>
                            <button type="button" class="btn btn-secondary">
                                <i class="fa fa-download"></i>
                                导出筛选结果
                            </button>
                        </div>
                    </form>
                </div>

                <!-- 报表列表 -->
                <div class="reports-grid">
                    <!-- 报表卡片 - 用户报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type user">用户报表</span>
                            <h3 class="report-title">月度用户增长报表</h3>
                            <p class="report-desc">展示本月用户增长情况，包括新注册用户、活跃用户和流失用户</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-31
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator success"></span>
                                    已完成
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-bar-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-download"></i>
                                下载
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-share"></i>
                                分享
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-trash"></i>
                                删除
                            </button>
                        </div>
                    </div>

                    <!-- 报表卡片 - 销售报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type sales">销售报表</span>
                            <h3 class="report-title">月度销售业绩报表</h3>
                            <p class="report-desc">展示本月销售业绩，包括销售额、订单数量和平均客单价</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-31
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator success"></span>
                                    已完成
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-line-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-download"></i>
                                下载
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-share"></i>
                                分享
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-trash"></i>
                                删除
                            </button>
                        </div>
                    </div>

                    <!-- 报表卡片 - 财务报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type finance">财务报表</span>
                            <h3 class="report-title">月度财务报表</h3>
                            <p class="report-desc">展示本月财务状况，包括收入、支出和利润</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-31
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator pending"></span>
                                    生成中
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-pie-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-refresh"></i>
                                刷新
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-times"></i>
                                取消
                            </button>
                        </div>
                    </div>

                    <!-- 报表卡片 - 营销报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type marketing">营销报表</span>
                            <h3 class="report-title">营销活动效果报表</h3>
                            <p class="report-desc">展示本月营销活动效果，包括点击率、转化率和ROI</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-30
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator success"></span>
                                    已完成
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-area-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-download"></i>
                                下载
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-share"></i>
                                分享
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-trash"></i>
                                删除
                            </button>
                        </div>
                    </div>

                    <!-- 报表卡片 - 用户报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type user">用户报表</span>
                            <h3 class="report-title">用户行为分析报表</h3>
                            <p class="report-desc">分析用户行为数据，包括页面访问、功能使用和留存率</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-28
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator success"></span>
                                    已完成
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-line-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-download"></i>
                                下载
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-share"></i>
                                分享
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-trash"></i>
                                删除
                            </button>
                        </div>
                    </div>

                    <!-- 报表卡片 - 销售报表 -->
                    <div class="report-card">
                        <div class="report-header">
                            <span class="report-type sales">销售报表</span>
                            <h3 class="report-title">产品销售排行榜</h3>
                            <p class="report-desc">展示本月产品销售排行，包括销售额和销售数量</p>
                            <div class="report-meta">
                                <span class="report-date">
                                    <i class="fa fa-calendar-o"></i>
                                    2023-05-25
                                </span>
                                <span class="report-status">
                                    <span class="status-indicator error"></span>
                                    生成失败
                                </span>
                            </div>
                        </div>
                        <div class="report-preview">
                            <div class="preview-placeholder">
                                <i class="fa fa-bar-chart" style="font-size: 2rem; margin-right: 0.5rem;"></i>
                                图表预览
                            </div>
                        </div>
                        <div class="report-actions">
                            <button class="action-btn">
                                <i class="fa fa-refresh"></i>
                                重新生成
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-eye"></i>
                                查看错误
                            </button>
                            <button class="action-btn">
                                <i class="fa fa-trash"></i>
                                删除
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 引入Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义JS -->
    <script>
        // 页面加载动画
        window.addEventListener('load', () => {
            const loader = document.querySelector('.loader');
            loader.classList.add('hidden');
        });

        // 侧边栏切换
        const sidebarToggle = document.getElementById('sidebarToggle');
        const sidebar = document.getElementById('sidebar');
        const mainContent = document.getElementById('mainContent');
        const mobileSidebarToggle = document.getElementById('mobileSidebarToggle');

        sidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('collapsed');
            mainContent.classList.toggle('expanded');
            // 切换按钮图标
            const toggleIcon = sidebarToggle.querySelector('.toggle-icon');
            if (sidebar.classList.contains('collapsed')) {
                toggleIcon.classList.remove('fa-angle-left');
                toggleIcon.classList.add('fa-angle-right');
            } else {
                toggleIcon.classList.remove('fa-angle-right');
                toggleIcon.classList.add('fa-angle-left');
            }
        });

        mobileSidebarToggle.addEventListener('click', () => {
            sidebar.classList.toggle('open');
        });

        // 点击主内容区域关闭侧边栏（移动端）
        mainContent.addEventListener('click', () => {
            if (sidebar.classList.contains('open')) {
                sidebar.classList.remove('open');
            }
        });

        // 报表卡片悬停效果
        const reportCards = document.querySelectorAll('.report-card');
        reportCards.forEach(card => {
            card.addEventListener('mouseenter', () => {
                card.style.transform = 'translateY(-5px) scale(1.02)';
            });
            card.addEventListener('mouseleave', () => {
                card.style.transform = 'translateY(0) scale(1)';
            });
        });

        // 报表操作按钮事件
        const actionBtns = document.querySelectorAll('.action-btn');
        actionBtns.forEach(btn => {
            btn.addEventListener('click', (e) => {
                e.preventDefault();
                const action = btn.textContent.trim();
                const reportCard = btn.closest('.report-card');
                const reportTitle = reportCard.querySelector('.report-title').textContent;
                
                // 这里可以添加具体的操作逻辑
                console.log(`对报表 "${reportTitle}" 执行操作: ${action}`);
                
                if (action === '重新生成') {
                    // 模拟重新生成报表
                    const statusIndicator = reportCard.querySelector('.status-indicator');
                    const statusText = reportCard.querySelector('.report-status span:last-child');
                    statusIndicator.className = 'status-indicator pending';
                    statusText.textContent = '生成中';
                    
                    // 模拟生成完成
                    setTimeout(() => {
                        statusIndicator.className = 'status-indicator success';
                        statusText.textContent = '已完成';
                    }, 2000);
                } else if (action === '删除') {
                    // 模拟删除报表
                    reportCard.style.opacity = '0';
                    reportCard.style.transform = 'translateY(20px)';
                    setTimeout(() => {
                        reportCard.remove();
                    }, 300);
                }
            });
        });
    </script>
</body>
</html>